package ru.aslanov.schedule.client;

import com.google.gwt.user.client.rpc.AsyncCallback;

/**
 * Created by IntelliJ IDEA.
 * Created: Feb 11, 2010 6:03:47 PM
 *
 * @author Sergey Aslanov
 */
public interface ScheduleServicesAsync {

    void publishSchedule(String scheduleKey, AsyncCallback<Void> async);

    void unpublishSchedule(String scheduleKey, AsyncCallback<Void> async);

    void getUserData(AsyncCallback<UserData> async);

    void loadFromGCalendar(String scheduleKey, AsyncCallback<Void> async);

    void publishToGCalendar(String scheduleKey, AsyncCallback<Void> async);

    void removeAuthorization(String scheduleKey, AsyncCallback<Void> async);

    void postXmlToUrl(String scheduleKey, AsyncCallback<Void> async);

    void getXml(String scheduleKey, String lang, AsyncCallback<String> async);

    void syncGroupDays(AsyncCallback<Void> async);

    void clearMemCache(AsyncCallback<Void> asyncCallback);
}
